package tat.mock;

import tat.domain.TatActor;
import tat.domain.TatUseCase;
import tat.domain.UseCaseRelation;
import tat.factory.UseCaseRelationFactory;

public class UseCaseRelationFactoryMock implements UseCaseRelationFactory {

    @Override
    public UseCaseRelation create(final TatActor actor, final TatUseCase uc) {
    	UseCaseRelation relation = new UseCaseRelation(actor, uc);
    	actor.addObserver(relation);
    	uc.addObserver(relation);
        return relation;
    }

}
